/** @jsxImportSource @emotion/react */
import * as React from "react";
import {  OriginalViewProps,  } from "../../common/base";
import {config设备概况, EntranceSetup,} from "./orcBase";
import { createItem,  } from "../../common/eHelper";
import {useRecordListSubr} from "../../hook/useRecordListSub";
import {DeviceSurvey} from "../../elevator/editor";
import {ConclusionContImp,  VsProjects默认} from "../editorJJ";
import {MaterialReview, FactoryMaterial} from "../editorReview";
import {ShellAppearance, Structural} from "../editorMacr";
import {AccessoriesValve, LiquidLevelGauge} from "../editSAcces";
import {config证书概要, } from "../editorCert";
import {ProjectList} from "../editor";


const 检验结果选=['符合','合格','压力表未检定，应检定合格后投用，其他符合', ];

const recordPrintList =[
  createItem('Entrance', <EntranceSetup/>),
  createItem('ProjectList', <ProjectList config={VsProjects默认} label={'工业管道定期检验结论报告附页'} resultlist={检验结果选}/>),
  createItem('Survey', <DeviceSurvey config={config设备概况} label={'检验结论报告-设备概况'}/>),
  createItem('Conclusion', <ConclusionContImp label={'检验结论报告-下结论'}/>),
  createItem('MaterialReview', <MaterialReview  label={'进口压力容器资料审查报告-(上)'}/>),
  createItem('FactoryMaterial', <FactoryMaterial label='进口压力容器资料审查报告-(下)'/>),
  createItem('Structural', <Structural label={'宏观检验报告-结构检验'}/>),
  createItem('ShellAppearance', <ShellAppearance label={'宏观检验报告-壳体外观检验'}/>),
  createItem('Accessories', <AccessoriesValve label={'安全附件及保护装置检查报告(上)'}/>),
  createItem('LiquidLevel', <LiquidLevelGauge label={'安全附件及保护装置检查报告(下)'}/>),
  createItem('CertificateSummary', <DeviceSurvey config={config证书概要} label={'进口特种设备安全性能监督检验证书'}/>),
  createItem('_Controller',  <></>),
];

export const OriginalView=
  React.forwardRef((
    { action: modAction,  verId, repId='', rep}
    :OriginalViewProps, ref
  ) => {
    const {list}=useRecordListSubr(ref,rep,recordPrintList,modAction,verId);
    return <React.Fragment>
      {list}
    </React.Fragment>;
  } );
